package EjemploArrayListas;

import java.util.ArrayList;

public class ArrayListas {
	public static void main(String[] args) {
		ArrayList<Entero>[] aal = new ArrayList[4];
		for( int i = 0 ; i < aal.length ; i++ ){
			aal[i] = new ArrayList<Entero>();
		}
		
		aal[0].add(new Entero(7));
		aal[0].add(new Entero(5));
		aal[0].add(new Entero(2));
		
		aal[1].add(new Entero(1));
		aal[1].add(new Entero(3));
		
		aal[2].add(new Entero(4));
		aal[2].add(new Entero(5));
		aal[2].add(new Entero(6));
		aal[2].add(new Entero(8));
		aal[2].add(new Entero(10));
		aal[2].add(new Entero(2));
		
		aal[3].add(new Entero(-7));
		aal[3].add(new Entero(5));
		aal[3].add(new Entero(-2));
		aal[3].add(new Entero(2));
		
		for(int i = 0 ; i < aal.length ; i++ ){
			System.out.println("LISTA " + i + ":");
			System.out.println(aal[i]);
		}
		

	}

}
